<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    img {
        width: 100px;
        border-radius: 50px;
        position: absolute;
    }
</style>

<body>
    <img src="../wyf.jpg" alt="">
    <script>
        var img = document.querySelector('img');
        document.addEventListener('mousemove', function (e) {
            var x = e.pageX;
            var y = e.pageY;
            // console.log(x, y);
            img.style.left = x - 25 + 'px';
            img.style.top = y - 25 + 'px';
        })
    </script>
</body>

</html>